import Layout from '@/views/layout'
import _import from '@/router/_import'

export const SystemRouterMaps = [
    {
        path: '',
        name: '仪表盘',
        component: Layout,
        redirect: '/dashboard',
        noDropDown: true,
        children: [
            {
                path: 'dashboard',
                component: _import('dashboard/index')
            }
        ]
    },
    {
        name: '授权中心',
        path: '/test',
        component: Layout,
        children: [
            {
                path: 'user',
                name: '用户管理',
                component: _import('test/user/index'),
                noDropDown: true,
                redirect: '/test/user/list',
                children: [
                    {
                        path: 'list',
                        name: '列表',
                        component: _import('test/user/list')
                    },
                    {
                        path: 'form',
                        name: '表单',
                        component: _import('test/user/from')
                    },
                    {
                        path: 'detail',
                        name: '详情',
                        component: _import('test/user/detail')
                    }
                ]
            },
            {
                path: 'role',
                name: '角色管理',
                component: _import('test/role')
            }
        ]
    },
    {
        name: '授权中心1',
        path: '/test',
        component: Layout,
        children: [
            {
                path: 'caigou',
                name: '采购管理',
                component: _import('test/index'),
                children: [
                    {
                        path: 'list',
                        name: '列表',
                        component: _import('test/index'),
                        hidden: true
                    },
                    {
                        path: 'form',
                        name: '表单',
                        component: _import('test/index'),
                        hidden: true
                    },
                    {
                        path: 'detail',
                        name: '详情',
                        component: _import('test/index')
                    }
                ]
            },
            {
                path: 'sys',
                name: '系统配置',
                component: _import('test/index')
            }
        ]
    }
]

